projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b58c7c6
)
(utf-8-pre-write-conversion): Handle the
author
Kenichi Handa
<handa@m17n.org>
Sat, 24 Feb 2007 01:25:37 +0000
(
01:25
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Sat, 24 Feb 2007 01:25:37 +0000
(
01:25
+0000)
case that BEG is a string.
lisp/international/utf-8.el
patch
|
blob
|
history
diff --git
a/lisp/international/utf-8.el
b/lisp/international/utf-8.el
index 2e4a2f6f49ae63c72faa8dbd24907eea28d7831a..2d8791b49e3ead24f3ad14b5509fbd6a080d25b2 100644
(file)
--- a/
lisp/international/utf-8.el
+++ b/
lisp/international/utf-8.el
@@
-1008,9
+1008,11
@@
Also compose particular scripts if `utf-8-compose-scripts' is non-nil."
This is used as a post-read-conversion of utf-8 coding system."
(if (and utf-translate-cjk-mode
(not utf-translate-cjk-lang-env)
- (save-excursion
- (goto-char beg)
- (re-search-forward "\\cc\\|\\cj\\|\\ch" end t)))
+ (if (stringp beg)
+ (string-match "\\cc\\|\\cj\\|\\ch" beg)
+ (save-excursion
+ (goto-char beg)
+ (re-search-forward "\\cc\\|\\cj\\|\\ch" end t))))
(utf-translate-cjk-load-tables))
nil)